using UnityEditor;
using UnityEditor.UI;

[CustomEditor(typeof(UIImageMirror))]
public class UIImageMirrorEditor : ImageEditor
{
    SerializedProperty m_mirrorType;

    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        EditorGUILayout.PropertyField(m_mirrorType);
        serializedObject.ApplyModifiedProperties();
    }

    protected override void OnEnable()
    {
        base.OnEnable();
        m_mirrorType = serializedObject.FindProperty("direction");
    }
}